package br.org.etec.dotcao.ws;

import java.util.List;

import javax.ws.rs.GET;
import javax.ws.rs.Path;
import javax.ws.rs.Produces;
import javax.ws.rs.core.MediaType;

import br.org.etec.dotcao.model.Species;
import br.org.etec.dotcao.service.ServiceFactory;


@Path("/specie")
public class SpecieResource {

	@GET
	@Path("/list")
	@Produces({MediaType.APPLICATION_JSON})
	public List<Species> allSpecies(){
		return ServiceFactory.get(Species.class).all();
	}
	
}
